package com.oa.hyperion.repository;

import com.oa.hyperion.entity.Perm;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface RolePermMapper {
    @Select("select p.* from perm p,role_perm_merge rp where rp.perm_id = p.id and p.id = #{id};")
    List<Perm> findPermByRole(int id);

}
